package com.example.biketask.util;

import java.sql.Date;

/**
 * @Param  java.util.Date   to   mysql date
 * @Descrption  将java的date类型转数据库date类型
 */
public class DataStyle {
    java.util.Date date = new java.util.Date();

    public Date DataStyle(){
        java.sql.Date transDate = new java.sql.Date(date.getTime());
        return transDate;
    }

    /*
    public static void main(String[] args) {
        DataStyle dataStyle = new DataStyle();
        System.out.println(dataStyle);
    }

     */


}
